<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="common::common(title='资源列表')">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" ></meta>
</head>
<body >
<body>
	<div class="x-body" id="app">
		<form class="layui-form" id="layui-form" lay-filter="layui-form">
			<xblock>
		        <button id="backBtn" class="layui-btn layui-btn-sm" @click.prevent="goBack"><i class="layui-icon">&#xe65c;</i>返回</button>
		        <button id="saveBtn" class="layui-btn layui-btn-sm" @click.prevent="doSave"><i class="layui-icon">&#xe60a;</i>保存</button>
		    </xblock>
			<input type="hidden" v-model="formData.id" th:value="${id}" id="id" name="id">
			<input type="hidden" name="parentName" id="parentName">
	      	<div class="layui-form-item">
		      	<div class="layui-inline">
		      		<label class="layui-form-label">资源名称<span style="color: red;">&nbsp;*</span></label>
		      		<div class="layui-input-inline" style="width: 180px;">
				      <input type="text" v-model="formData.name" name="name" autocomplete="off" class="layui-input" lay-verify="required">
				    </div>
		      	</div>
		      	<div class="layui-inline">
		      		<label class="layui-form-label">资源描述<span style="color: red;">&nbsp;*</span></label>
		      		<div class="layui-input-inline" style="width: 180px;">
				      <input type="text" v-model="formData.description" id="description" name="description" autocomplete="off" class="layui-input" lay-verify="required">
				    </div>
		      	</div>
		      	<div class="layui-inline">
		      		<label class="layui-form-label">资源地址<span style="color: red;">&nbsp;</span></label>
		      		<div class="layui-input-inline" style="width: 180px;">
				      <input type=text v-model="formData.url" name="url" autocomplete="off" class="layui-input">
				    </div>
		      	</div>
	      	</div>
	      	<div class="layui-form-item">
		      	<div class="layui-inline">
		      		<label class="layui-form-label">资源类型<span style="color: red;">&nbsp;*</span></label>
		      		<div class="layui-input-inline" style="width: 180px;">
				      <select name="type" lay-filter="type">
							<option value="0">url资源</option>
							<option value="1">组件资源</option>
							<option value="2">模块</option>
						</select>
				    </div>
		      	</div>
		      	<div class="layui-inline">
		      		<label class="layui-form-label">资源状态<span style="color: red;">&nbsp;*</span></label>
		      		<div class="layui-input-inline" style="width: 180px;">
				      <select name="status" lay-filter="status" style="width: 55px;">
						<option value="1">有效</option>
						<option value="0">无效</option>
					  </select>
				    </div>
		      	</div>
		      	<div class="layui-inline">
		      		<label class="layui-form-label">资源编码<span style="color: red;">&nbsp;*</span></label>
		      		<div class="layui-input-inline" style="width: 180px;">
				      <input type="text" name="code" v-model="formData.code" autocomplete="off" class="layui-input" lay-verify="required" >
				    </div>
		      	</div>
	      	</div>
	      	<div class="layui-form-item">
		      	<div class="layui-inline">
		      		<label class="layui-form-label">排序号<span style="color: red;">&nbsp;*</span></label>
		      		<div class="layui-input-inline" style="width: 180px;">
				      <input type="text" name="orderIndex" v-model="formData.orderIndex" autocomplete="off" class="layui-input" lay-verify="required" >
				    </div>
		      	</div>
		      	<div class="layui-inline">
		      		<label class="layui-form-label">图标<span style="color: red;">&nbsp;*</span></label>
		      		<div class="layui-input-inline" style="width: 180px;">
				      <input type="text" name="imgName" v-model="formData.imgName" autocomplete="off" class="layui-input" lay-verify="required" >
				    </div>
		      	</div>
		      	<div class="layui-inline">
		      		<label class="layui-form-label">所在模块<span style="color: red;">&nbsp;*</span></label>
		      		<div class="layui-input-inline" style="width: 180px;">
				      <input type="text" id="parentId" name="parentId" v-model="formData.parentId" autocomplete="off" class="layui-input" lay-verify="required">
				    </div>
		      	</div>
	      	</div>
      </form>
	</div>
	<script type="text/javascript" th:src="@{/js/basic/resourceinfo_rowEdit.js}"></script>
</body>
</html>